<?php
include ('../genericos/translate.php');
?>

<div id ="usuarios">
    <h3 id ="dp"><a><?= _("usuarios") ?></a></h3>
    <div>

        <form action="" method="post" enctype="multipart/form-data" method="post"
              onsubmit="" name="formUsuario" id="formUsuario" style="">

            <table align="center" id="tablausuarios">

                <tr>
                    <td><label class="labelform"><?= _("cedula") ?>:</label></td>
                    <td><input onchange=""  id="tb_cedula" name="tb_cedula" type="text" class="validate[required]" onblur = "traerUsuario(this);" />
                    </td>
                    <td><a class="ui-icon ui-icon-search" style="" href="#" title="Buscar Persona" onclick="traerUsuario(this);return false"> </a>    </td>
                </tr>
                <tr>
                    <td><label class="labelform"><?= _("nombre") ?>:</label></td>
                    <td><input id="tb_nombre" name="tb_nombre" type="text" class="validate[required]" disabled="true" /></td>
                    <td></td>
                </tr>
                <tr>
                    <td><label class="labelform"><?= _("usuario") ?>:</label></td>
                    <td><input id="tb_usuario" name="tb_usuario" type="text" class="validate[required] text-input" disabled="true" onblur = "comprobarUser();" /></td>
                    <td><a id="a_user" class="ui-icon ui-icon-closethick" style="display: none" ></a></td>
                </tr>


                <tr>
                    <td><label class="labelform"><?= _("perfilusuario") ?>:</label></td>
                    <td><select id="cb_perfilusuario" multiple="multiple"  class="multiselect" name="cb_perfilusuario" ></select></td>
                    <td></td>
                </tr>

                <tr id="td_perfiles" class="mostrado" >
                    <td></td>      
                    <td><div id="div_perfiles" class="procedimientosCita" style ="max-width: 225px;"></div></td>
                    <td></td>
                </tr>
                 
                <tr>
                    <td><label class="labelform"><?= _("email") ?>:</label></td>
                    <td><select id="cb_email" name="cb_email" class="cbo validate[required] ui-multiselect ui-widget ui-state-default ui-corner-all" style="width: 227px!important" ><option><?= _("seleccionar"); ?></option></select></td>
                    <td><a id="agregaremail" class="ui-icon ui-icon-plusthick" style="display: none; float: left" onclick="javascript:  jQuery( '#add_email' ).dialog( 'open' );document.getElementById('tb_email').value=''; "></a></td>
                </tr>




            </table> <!-- End table -->

            <!--            <div id="navButs" style="width: 632px; " class="ui-state-default ui-jqgrid-pager ui-corner-bottom" dir="ltr">
                            
                            <div class="ui-pager-control" role="group">
                            <table cellspacing="0" cellpadding="0" border="0" class="ui-pg-table navtable" style="float:left;table-layout:auto;">
                                <tbody>
                                    <tr>
                            <td class="ui-pg-button ui-corner-all" title="Add new row" id="add_grid_dir"><div class="ui-pg-div"><span class="ui-icon ui-icon-plus"></span></div></td>
                            </tr>
                            </tbody>
                            </table>
                                
                            </div>
                        </div>-->


            <div id="navbuts" style="width: 632px; " class="ui-state-default ui-jqgrid-pager ui-corner-bottom" dir="ltr">
                <div id="navbutsDatosPersonales" class="ui-pager-control" role="group">
                    <table cellspacing="0" cellpadding="0" border="0" class="ui-pg-table" style="width:100%;table-layout:fixed;height:100%;" role="row">
                        <tbody><tr>
                                <td id="pagnavbuts_left" align="left">
                                    <table cellspacing="0" cellpadding="0" border="0" class="ui-pg-table navtable" style="float:left;table-layout:auto;">
                                        <tbody><tr><td class="ui-pg-button  ui-corner-all botonNav" title="<?= _("clickguardar") ?>" id="add_grid_reg">
                                                    <div class="ui-pg-div">
<!--                                                        <span id="addregistro" onclick="enviarDatos();" class="ui-icon ui-icon-plus"></span>-->
                                                        <a class="ui-icon ui-icon-plus" href="#" onclick="enviarDatosUsuario();return false">
                                                        </a>
                                                    </div>
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </form>

    </div>
</div>
